
#--------------------------------------------------------------------------
#MAIN
if __name__ == "__main__":
    f = open('C:/_DATA/CancerData/test/Jan15/Thousand/AZM/xml/case.xml','r')
    line = f.readline()

    a = ""
    while line:
        a += line
        line = f.readline()
    f.close()
    output = ''
    print a[:872]+a[873:]

    for i in range(0,1000):
        #output = a[:936] + str(i+3) + a[937:]
        output = a[:872]+ str(i+3) + a[873:]
        #output += temp + '\n\n'
        #filename = 'C:/_DATA/CancerData/test/Jan15/Thousand/AZM/xml/case' + str(i) + '.xml'
        filename = 'C:/temp/AZM/xml/case' + str(i) + '.xml'
        f = open(filename,'w')
        f.write(output)
        f.close()